package com.ruoyi.bizsys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 奖励订单对象 award_record
 *
 * @author african-loan
 * @date 2022-06-24
 */
@Data
public class AwardRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 奖励批次号
     */
    private String batchNo;

    /**
     * 奖励流水号
     */
    private String serialNo;

    /**
     * 奖励用户
     */
    @Excel(name = "奖励用户")
    private String userId;

    /**
     * 奖励用户
     */
    private String custNo;


    /**
     * 奖励bvn
     */
    @Excel(name = "奖励bvn")
    private String realBvn;


    /**
     * 奖励的注册号码
     */
    @Excel(name = "奖励的注册号码")
    private String registerPhone;


    /**
     * 奖励金
     */
    @Excel(name = "奖励金")
    private BigDecimal awardAmount;

    /**
     * 受邀号码
     */
    @Excel(name = "受邀号码")
    private String invitedPhone;

    /**
     * 受邀用户
     */
    @Excel(name = "受邀用户")
    private String invitedUserId;


    /**
     * 受邀用户bvn
     */
    @Excel(name = "受邀用户bvn")
    private String invitedBvn;



    /**
     * 活动id
     */
    private Long actId;



    /**
     * 奖励配置id
     */
    private Long awardConfigId;


    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;


    /**
     * 受邀事件
     */
    @Excel(name = "受邀事件")
    private String invitedEventType;


    /**
     * 受邀事件奖励次数
     */
    @Excel(name = "受邀事件奖励次数")
    private Integer invitedEventAwardNum;


    /**
     * 受邀事件奖励方式
     */

    @Excel(name = "受邀事件奖励方式")

    private String invitedEventAwardMethod;


    /**
     * 创建时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /**
     * 受邀事件奖励数值
     */
    @Excel(name = "受邀事件奖励数值")
    private Integer invitedEventAwardValue;


    /**
     * 更新者
     */
    @Excel(name = "更新者")
    private String updateBy;


    /**
     * 创建者
     */
    @Excel(name = "创建者")
    private String createBy;


    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private String lastName;
}